import { IsNotEmpty, MaxLength } from 'class-validator';

export class CreatePatentDto {
  enterpriseId: number;

  @IsNotEmpty({
    message: '专利名称不能为空',
  })
  @MaxLength(100)
  name: string;

  applicationDate?: Date;

  registrationDate?: Date;

  @IsNotEmpty({
    message: '申请人不能为空',
  })
  applicant: string;

  @IsNotEmpty({
    message: '专利类型不能为空',
  })
  patentType: string;

  abstract?: string;
}
